#ifndef PRIVATE_QFACECLIPPER_H
#define PRIVATE_QFACECLIPPER_H
#include <QObject>
#include <qgl.h>
#include <QGLContext>
#include <QImage>
#include <QGLFrameBufferObject>
#include "Model.hpp"

class QFaceClipper : public QObject
{
	Q_OBJECT

public:
	QFaceClipper ();
	~QFaceClipper ();

	QImage clipFace (Model &model);

private:
	QGLContext *_pGLContext;
	QGLFramebufferObject *_pFaceFrameBufObj;

	void _saveGLState ();
	void _restoreGLState ();
};

#endif // QFACECLIPPER_H
